package com.yan.demo.loopdemo;

public class WhileDemo6 {
    public static void main(String[] args) {
        int n = 1;
        while (true){
            if(n % 3 == 2 && n % 5 == 3 && n % 7 == 4){
                break;
            }
            n++;
        }
        System.out.println("n = " + n);
    }
}
